#ifndef PINQPACKETSVIEW_H
#define PINQPACKETSVIEW_H

#include <QikViewBase.h>
#include "PinQTask.h"
#include "PinQModel.h"
#include "PinQAppUi.h"

class CQikListBox;
class CQikCommandManager;
class MQikListBoxData;
class MQikListBoxModel;

class CPinQPacketsView : public CQikViewBase
	{
public:
	static CPinQPacketsView* NewLC(CQikAppUi& aAppUi,const TVwsViewId aParentViewId);
	~CPinQPacketsView();
	TVwsViewId ViewId()const;
	inline TBool IsActivated() const {return CQikViewBase::IsActivated();}
	void PacketRecievedL(const CPinQTask::TPacket& aPacket);

private:
	CPinQPacketsView(CQikAppUi& aAppUi, const TVwsViewId aParentViewId);

	void HandleCommandL(CQikCommand& aCommand);
	inline CPinQModel& PinQModel(){return static_cast<CPinQAppUi&>(iQikAppUi).PinQModel();}
	inline CPinQDocument& PinQDocument(){return static_cast<CPinQAppUi&>(iQikAppUi).PinQDocument();}
	void ViewActivatedL(const TVwsViewId &aPrevViewId,TUid aCustomMessageId,const TDesC8 &CustomMessage);
	void ViewConstructL();
	void SetZoomFactorL(TInt aZoomLevel);
	void ConstructL();
	
private:
	TUid iCurrentTaskUid;
	};

#endif // PINQPACKETSVIEW_H
